package net.suncaper.demo.service;

import net.suncaper.demo.domain.Hotel;
import net.suncaper.demo.domain.HotelExample;
import net.suncaper.demo.domain.RoomType;
import net.suncaper.demo.domain.RoomTypeKey;
import net.suncaper.demo.mapper.HotelMapper;
import net.suncaper.demo.mapper.RegionMapper;
import net.suncaper.demo.mapper.RoomTypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class RoomTypeServiceImpl implements RoomTypeService {

    @Autowired
    private RoomTypeMapper roomTypeMapper;
    @Override
    public List<RoomType> selectByPrimaryKey(Long hotelid, Long roomid,Long cityid){
        return roomTypeMapper.selectByPrimaryKeyCode(hotelid,roomid,cityid);
    }
    @Override
    public List<RoomType> selectByID(Long cityID, Long hotelID) {
        return roomTypeMapper.selectByID(cityID,hotelID);
    }
}